

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_TOUCH_SENSOR_BLOCK_1608089710650'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_TOUCH_SENSOR_BLOCK_1608089710650'] = ``;
            Blockly.Arduino.definitions_['define_EXT_TOUCH_SENSOR_BLOCK_1608089710650'] = `int touch_PIN${pin}  = ${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_TOUCH_SENSOR_BLOCK_1608089710650'] = `pinMode(touch_PIN${pin},INPUT);`;
             return  [`digitalRead(touch_PIN${pin})==HIGH`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        